
package hz;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by 衰草寒烟 on 2016/12/5.
 */
public class RuleBean implements Serializable{
    private int id;//规则ID
    private String rulename;//规则名称
    private String warnname;//告警名称
    private int timerange;//时间范围
    private int number;//匹配条数
    private String samepol;//相同聚合条件
    private String diffpol;//不同聚合条件
    private String warnemail;//告警邮箱
    private String onoff;// 是否启用
    private String describe;//规则描述
    private Date mktime; //创建时间
    private String silencestart;  //静默开始时间
    private String silencestop;//静默结束时间
    private String level;//告警等级
    private int every;//告警每隔  分钟
    private List<TiaojianBean> tiaojian;

    public String getSilencestart() {
        return silencestart;
    }

    public void setSilencestart(String silencestart) {
        this.silencestart = silencestart;
    }

    public String getSilencestop() {
        return silencestop;
    }

    public void setSilencestop(String silencestop) {
        this.silencestop = silencestop;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public int getEvery() {
        return every;
    }

    public void setEvery(int every) {
        this.every = every;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRulename() {
        return rulename;
    }

    public void setRulename(String rulename) {
        this.rulename = rulename;
    }

    public String getWarnname() {
        return warnname;
    }

    public void setWarnname(String warnname) {
        this.warnname = warnname;
    }

    public int getTimerange() {
        return timerange;
    }

    public void setTimerange(int timerange) {
        this.timerange = timerange;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getSamepol() {
        return samepol;
    }

    public void setSamepol(String samepol) {
        this.samepol = samepol;
    }

    public String getDiffpol() {
        return diffpol;
    }

    public void setDiffpol(String diffpol) {
        this.diffpol = diffpol;
    }

    public String getWarnemail() {
        return warnemail;
    }

    public void setWarnemail(String warnemail) {
        this.warnemail = warnemail;
    }

    public String getOnoff() {
        return onoff;
    }

    public void setOnoff(String onoff) {
        this.onoff = onoff;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

public Date getMktime() {
        return mktime;
    }

    public void setMktime(Date mktime) {
        this.mktime = mktime;
    }

    public List<TiaojianBean> getTiaojian() {
        return tiaojian;
    }

    public void setTiaojian(List<TiaojianBean> tiaojian) {
        this.tiaojian = tiaojian;
    }

    @Override
    public String toString() {
        return "RuleBean{" +
                "id=" + id +
                ", rulename='" + rulename + '\'' +
                ", warnname='" + warnname + '\'' +
                ", timerange=" + timerange +
                ", number=" + number +
                ", samepol='" + samepol + '\'' +
                ", diffpol='" + diffpol + '\'' +
                ", warnemail='" + warnemail + '\'' +
                ", onoff='" + onoff + '\'' +
                ", describe='" + describe + '\'' +
                ", mktime=" + mktime +
                ", tiaojian=" + tiaojian +
                ", silencestart='" + silencestart + '\'' +
                ", silencestop='" + silencestop + '\'' +
                ", level='" + level + '\'' +
                ", every=" + every +
                '}';
    }
}

